//
//  TalkfunDocument.h
//  CloudLive
//
//  Created by 孙兆能 on 16/9/19.
//  Copyright © 2016年 Talkfun. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface TalkfunDocument : NSObject
//只是上传, 不用通知进度
@property(nonatomic,assign)BOOL cancelSchedule;
//根据courseID获取PPT文件列表
- (void)getDocumentListOfCourse:(NSString *)courseID callback:(void (^)(id result))callback;
//根据courseID获取图片文件列表
- (void)getImageListOfCourse:(NSString *)courseID callback:(void (^)(id result))callback;
//根据courseID获取视频文件列表
- (void)getVideoListOfCourse:(NSString *)courseID callback:(void (^)(id result))callback;
//根据PPT课件ID获取相应课件信息
- (void)getDocument:(NSString *)courseWareID callback:(void (^)(id result))callback;

//根据PPT课件ID加载课件   清空原文档与清空白板
- (void)addDocument:(NSString *)courseWareID callback:(void (^)(id result))callback;


//助教端同步主播ppt
- (void)insertDocument:(NSString *)courseWareID access_token:(NSString *)token callback:(void (^)(id result))callback;

//根据PPT课件ID加载课件   清空原文档,保留白板
- (void)insertDocument:(NSString *)courseWareID callback:(void (^)(id result))callback;
//删除文档
- (void)deleteDocument:(NSString *)courseWareID callback:(void (^)(id result))callback;
//根据PPT课件ID加载image  ,保留白板 保存ppt
- (void)insertImage:(NSString *)courseWareID callback:(void (^)(id result))callback;

//提供courseID和文件（本地图片的asset（PHAsset或者ALAsset类型）的对象的集合 或 文件的地址） 上传图片或文档，返回上传结果
- (void)upload:(NSString *)courseID files:(NSArray *)files callback:(void (^)(id result))callback;

//提供courseID和文件（本地图片的asset（PHAsset或者ALAsset类型）的对象的集合 或 文件的地址） 上传图片或文档，返回上传结果
//- (void)upload:(NSString *)courseID image:(NSArray *)imaeg callback:(void (^)(id result))callback;

//提供courseID和文件（本地图片的asset（PHAsset或者ALAsset类型）的对象的集合 或 文件的地址） 上传图片或文档，返回上传结果
- (void)upload:(NSString *)courseID imageArray:(NSArray *)array callback:(void (^)(id result))callback;

//上传照片,YES,即通知ppt显示照片,NO即不通知
- (void)upload:(NSString *)course_id imagesAssetArray:(NSArray *)imagesAssetArray isDocument:(BOOL)isdocument callback:(void (^)(id result))callback;
//轮询文件处理进度
- (void)processProgress:(NSString *)courseID callback:(void (^)(id result))callback;
//取消上传某个文档
- (void)cancelUpload:(NSString *)courseID filePath:(NSString *)filePath callback:(void (^)(id result))callback;




@end
